<!--
 * @Author: ckk
 * @Date: 2022-08-15 18:23:46
 * @LastEditors: Please set LastEditors
 * @LastEditTime: 2023-07-20 10:50:58
 * @Description: 左右版设
-->
<template>
  <div class="right-layout">
    <div
      class="four-static"
      v-for="(item, index) in datas.imageList"
      :key="index"
      :style="{
        borderRadius: datas.borderRadius + 'px',
        marginBottom: datas.pageMargin + 'px'
      }"
    >
      <img
        :src="item.coverUrl"
        alt=""
        :style="{ borderRadius: datas.imageRadius + 'px' }"
      />
      <div class="static-content">
        <div class="static-title">
          <p class="title-name" :style="{ fontWeight: datas.textWeight }">{{ item.name }}</p>
          <p class="title-desc">{{ item.desc }}</p>
        </div>
        <div class="static-paly-num">
          <img src="../../../assets/images/play.png" alt="" />
          <span>{{ datas.count }}人已学</span>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: '',
  props: {
    datas: Object
  },
  data () {
    return {};
  },
  methods: {}
};
</script>

<style scoped lang="scss">
.right-layout{
  padding:0 16px;
}
.four-static {
  display: flex;
  padding: 10px;
  background: #fff;
  img {
    width: 100px;
    height: 100px;
    margin-right: 12px;
  }
}
.static-content {
  display: flex;
  padding:4px 0;
  flex-direction: column;
  justify-content: space-between;
  p {
    font-size: 16px;
    font-weight: bold;
    color: rgba(0, 0, 0, 0.85);
    line-height: 20px;
  }
  .title-name{
     overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
  }
  .title-desc {
    font-size: 12px;
    padding-top: 8px;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.5);
    line-height: 21px;
    width:100%;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }
  .static-paly-num {
    display: flex;
    align-items: center;
    img {
      width: 16px;
      height: 16px;
    }
    span {
      font-size: 12px;
      font-weight: 400;
      color: #a3a6ad;
    }
  }
}
</style>
